package cn.cjlmonster.demo02;

/**
 * This project is Demo02
 * Created by cjl on 2021/11/20 6:20 下午.
 */

public class IEvent<T> {

    private int eventCode;

    private T data;

    public IEvent(int eventCode) {
        this.eventCode = eventCode;
    }

    public IEvent(int eventCode, T data) {
        this.eventCode = eventCode;
        this.data = data;
    }

    public int getEventCode() {
        return eventCode;
    }

    public void setEventCode(int eventCode) {
        this.eventCode = eventCode;
    }

    public Object getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "IEvents{" +
                "eventCode=" + eventCode +
                ", data=" + data +
                '}';
    }
}
